#include "Process.h"
#include "FontManager.h"
#include "GraphicsManager.h"

CProcess::CProcess( )
	: m_pCamera( NULL ),
	m_FPS(0)
{

}

CProcess::CProcess( CCamera* ap_Camera )
	: m_pCamera( ap_Camera ),
	m_FPS(0)
{

}

void CProcess::RenderDebugInfo()
{
	CFontManager* p_font_mngr = CFontManager::GetSingletonPtr();
	m_LastLineInDebug = p_font_mngr->DrawDefaultText(2,2, colWHITE, "FPS: %d", (uint32)m_FPS );
	CGraphicsManager* p_graphics_manager = CGraphicsManager::GetSingletonPtr();
	p_graphics_manager->DrawQuad2D( Vect2i(100,5), 200, m_LastLineInDebug + 100, CGraphicsManager::CENTER, colORANGE );
	m_LastLineInDebug = p_font_mngr->DrawDefaultText(2,2, colWHITE, "FPS: %d", (uint32)m_FPS );
}